<?php

namespace app\common\utils;

use voku\helper\AntiXSS;

class SafeFilter
{
    public static function safeChars($str)
    {

//        if(gettype($str)==="string") {
//
//            $pregs = '/(eval|script|alert|select|\'|\/\*|\#|\--|\ --|\[|\]|\{|\}|\=|\~|\*@|\*!|\$|\%|\^|\&|\(|\)|union|into|load_file|outfile)/i';//|\/|\/\/|\.\.\/|\.\/  |\/
//            $replacement = '\\\${1}';
//            return trim(preg_replace($pregs, $replacement, $str));
//        }
     /*   if (is_string($str)) {
            return (new AntiXSS())->xss_clean($str);
        }*/
        return $str;
    }
}